import java.util.Scanner;

/**
 * @Author 2.0
 * @Date 2022/4/17 16:37
 * @Description  3
 */
public class TsetDemo3 {
    public static void multiplicationTable(int n) {
        int i=1;
        int j=1;
        for(i=1;i<=n;i++) {
            for(j=1;j<=i;j++) {
                System.out.print(j+"*"+i+"="+j*i+" " );
            }
            System.out.println();
        }
    }
        public static void main(String[] args) {
            Scanner scanner = new Scanner(System.in);
            while(scanner.hasNext()) {
                int n = scanner.nextInt();
                multiplicationTable(n);
            }
        }
}
